package com.example.logistics_oa.controller;


import com.example.comment_oa.response.AjaxResponse;
import com.example.logistics_oa.service.JibenWuxianyijinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/logisticsOa")
@CrossOrigin
public class JiBenWuXianYiJinController {
    @Autowired
    JibenWuxianyijinService jibenWuxianyijinService;

    @PostMapping("/updateWuXianYiJinOne/{jibenZhujian}")
    public AjaxResponse updateWuXianYiJinOne(@PathVariable("jibenZhujian") int jibenZhujian){
        int i = jibenWuxianyijinService.updateWuXianYiJinOne(jibenZhujian);
        return  AjaxResponse.success();
    }

    @PostMapping("/updateWuXianYiJinAll/{jibenId}")
    public AjaxResponse updateWuXianYiJinAll(@PathVariable("jibenId") String jibenId){
        int i = jibenWuxianyijinService.updateWuXianYiJinAll(jibenId);
        return  AjaxResponse.success();
    }


}
